package com.ruoyi.patrol.domain.dto;

/**
 * @Description:
 * @author: elis
 * @date: 2023.12.07
 */

public class SchoolPoint {
    private Integer id;
    private String schoolName;
    private String type;
    private String coordinate;

    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        switch (type){
            case "1":
                this.type = "小学校";
                break;
            case "2":
            case "3":
                this.type = "中学校";
                break;
            case "4":
                this.type = "九年一贯制学校";
                break;
        }
    }
}
